package com.hundsun.aitest.model.ai;

import java.util.Map;

public class TestParameters {
    private Map<String, Object> parameters;

    public TestParameters(Map<String, Object> parameters) {
        this.parameters = parameters;
    }

    // Getter and Setter methods
    public Map<String, Object> getParameters() {
        return parameters;
    }

    public void setParameters(Map<String, Object> parameters) {
        this.parameters = parameters;
    }

    @Override
    public String toString() {
        if (parameters == null) {
            return "TestParameters{parameters=null}";
        }

        StringBuilder sb = new StringBuilder("TestParameters{parameters=");
        sb.append("{");

        boolean firstEntry = true;
        for (Map.Entry<String, Object> entry : parameters.entrySet()) {
            if (!firstEntry) {
                sb.append(", ");
            }
            sb.append(entry.getKey()).append("=").append(entry.getValue());
            firstEntry = false;
        }

        sb.append("}}");
        return sb.toString();
    }
}